package com.hsyt.pms.sys.dubbo;

import com.hsyt.pfc.support.rpc.PageResult;
import com.hsyt.pms.api.dto.system.SysUserDto;
import com.hsyt.pms.api.vo.system.SysUserVo;

import java.util.List;

/**
 * @ClassName: SysUserService
 * @Description: 用户服务接口
 * @author wangze@hsyuntai.com
 * @date 2019年2月12日 下午2:45:51
 */
public interface SysUserService {

    void updateUserByKeySelective(SysUserDto dto);

    SysUserVo selectUserByKey(Long id);

    void saveAdmin(SysUserDto dto) throws Exception;

    List<SysUserVo> listYunAdmin(SysUserDto dto);

    PageResult<SysUserVo> searchPageDataByDto(SysUserDto admin);

    void saveUserRole(Long userId, List<Long> roleIds) throws Exception;

    List<Long> queryUserRole(Long userId) throws Exception;
}
